package com.zmn.plat.persistence.interfaces.supplier;

import com.zmn.common.dto.VtDTO;
import com.zmn.plat.model.entity.supplier.SupplierCompanyMap;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类描述： ScmSupplierCompanyMapDAO
 *
 * @author DaiZhichao
 * @since 2019/2/1 16:15
 */
public interface ScmSupplierCompanyMapDAO {
    
    /**
     * 描述: 根据 supplierId 查询列表
     *
     * @param supplierId Integer
     * @return SupplierCompanyMap
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    List<SupplierCompanyMap> listBySupplierId(Integer supplierId);
    
    /**
     * 描述: 根据 companyId 查询列表
     *
     * @param companyId Integer
     * @return SupplierCompanyMap
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    List<SupplierCompanyMap> listByCompanyId(Integer companyId);


    /**
     * 描述: 根据 companyId 查询列表
     *
     * @param companyId Integer
     * @return SupplierCompanyMap
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    List<VtDTO> listSupplierSimpleList(@Param(value="companyId")Integer companyId);

    /**
     * 描述: 批量新增数据
     *
     * @param mapList List<SupplierCompanyMap>
     * @return Integer
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    Integer insertBatch(List<SupplierCompanyMap> mapList);

    /**
     * 描述: 批量单条数据
     *
     * @param supplierId Integer
     * @return Integer
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    Integer deleteBySupplierId(Integer supplierId);

    /**
     * 描述: 批量单条数据
     *
     * @param companyId Integer
     * @return Integer
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    Integer deleteByCompanyId(Integer companyId);

}
